package ScreensManager.ProjectScreens
{
	import flash.events.Event;
	import flash.events.MouseEvent;
	import ScreensManager.*;
	
	/**
	 * ...
	 * @author ...
	 */
	public class MenuScreen extends Screen
	{
		// Tela de menu
		public function MenuScreen()
		{
			this.name = "MenuScreen";
			/*
			* Eventos do menu ficam aqui
			*/
			Main.getInstance().stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown, false, 0, true);
		}
		
		override public function removeListeners():void 
		{
			Main.getInstance().stage.removeEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
		}
		
		override public function drawScreen():void
		{
			Main.getInstance().addChild(this);
		}
		
		private function onMouseDown(e:MouseEvent):void
		{
			ScreenManager.setCurrentScreen(Screens.GAME_SCREEN);
		}
	}
}